//
//  BK_my_CouponTextField.m
//  bestkeep
//
//  Created by 李明 on 2016/12/19.
//  Copyright © 2016年 utouu. All rights reserved.
//

#import "BK_my_CouponTextField.h"

@implementation BK_my_CouponTextField

- (CGRect)editingRectForBounds:(CGRect)bounds {
    CGRect inset = CGRectMake(bounds.origin.x + 10, bounds.origin.y, bounds.size.width - 20, bounds.size.height);
    return inset;
}

- (CGRect)textRectForBounds:(CGRect)bounds {
    CGRect inset = CGRectMake(bounds.origin.x + 10, bounds.origin.y, bounds.size.width - 20, bounds.size.height);
    return inset;
}

- (void)customWithPlaceholder: (NSString *)placeholder color: (UIColor *)color font: (UIFont *)font {
    
    self.placeholder = placeholder;
    [self setValue:color forKeyPath:@"_placeholderLabel.color"];
    [self setValue:font forKeyPath:@"_placeholderLabel.font"];
}


@end
